Change-Id: Id326fb2a54aac62cb27aa7045082924b5cd84940
* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
- * @return MediaTransformError|bool Error object if error occurred, false (=no error) otherwise
+ * @return MediaTransformError|false Error object if error occurred, false (=no error) otherwise
*/
protected function transformImageMagick( $image, $params ) {
# use ImageMagick
*/
protected function transformImageMagick( $image, $params ) {
# use ImageMagick
* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
- * @return MediaTransformError Error|bool object if error occurred, false (=no error) otherwise
+ * @return MediaTransformError|false Error object if error occurred, false (=no error) otherwise
*/
protected function transformImageMagickExt( $image, $params ) {
global $wgSharpenReductionThreshold, $wgSharpenParameter, $wgMaxAnimatedGifArea,
*/
protected function transformImageMagickExt( $image, $params ) {
global $wgSharpenReductionThreshold, $wgSharpenParameter, $wgMaxAnimatedGifArea,
* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
- * @return MediaTransformError Error|bool object if error occurred, false (=no error) otherwise
+ * @return MediaTransformError|false Error object if error occurred, false (=no error) otherwise
*/
protected function transformCustom( $image, $params ) {
# Use a custom convert command
*/
protected function transformCustom( $image, $params ) {
# Use a custom convert command
*
* @param File|FSFile $image
* @param string $filename
*
* @param File|FSFile $image
* @param string $filename
*/
function getImageSize( $image, $filename ) {
$f = fopen( $filename, 'rb' );
*/
function getImageSize( $image, $filename ) {
$f = fopen( $filename, 'rb' );
/**
* Return data in the style of getimagesize()
/**
* Return data in the style of getimagesize()
- * @return array|bool Array or false on failure
+ * @return array|false Array or false on failure
*/
public function getImageSize() {
$data = $this->getInfo();
*/
public function getImageSize() {
$data = $this->getInfo();
*
* @param File|FSFile $image
* @param string $path
*
* @param File|FSFile $image
* @param string $path
*/
function getImageSize( $image, $path ) {
$gis = parent::getImageSize( $image, $path );
*/
function getImageSize( $image, $path ) {
$gis = parent::getImageSize( $image, $path );
* @param File|FSFile $image The image object, or false if there isn't one.
* Warning, FSFile::getPropsFromPath might pass an FSFile instead of File (!)
* @param string $path The filename
* @param File|FSFile $image The image object, or false if there isn't one.
* Warning, FSFile::getPropsFromPath might pass an FSFile instead of File (!)
* @param string $path The filename
- * @return array|bool Follow the format of PHP getimagesize() internal function.
+ * @return array|false Follow the format of PHP getimagesize() internal function.
* See https://www.php.net/getimagesize. MediaWiki will only ever use the
* first two array keys (the width and height), and the 'bits' associative
* key. All other array keys are ignored. Returning a 'bits' key is optional
* See https://www.php.net/getimagesize. MediaWiki will only ever use the
* first two array keys (the width and height), and the 'bits' associative
* key. All other array keys are ignored. Returning a 'bits' key is optional
* @param File|FSFile $file
* @param string $path Unused
* @param bool|array $metadata
* @param File|FSFile $file
* @param string $path Unused
* @param bool|array $metadata
*/
function getImageSize( $file, $path, $metadata = false ) {
if ( $metadata === false && $file instanceof File ) {
*/
function getImageSize( $file, $path, $metadata = false ) {
if ( $metadata === false && $file instanceof File ) {
*
* @param File|FSFile $image
* @param string $filename
*
* @param File|FSFile $image
* @param string $filename
*/
function getImageSize( $image, $filename ) {
$header = self::getXCFMetaData( $filename );
*/
function getImageSize( $image, $filename ) {
$header = self::getXCFMetaData( $filename );